package com.probiz.estore.order.service.impl;

import com.probiz.estore.common.model.order.OrderPick;
import com.probiz.estore.common.model.order.OrderPromotion;
import com.probiz.estore.core.service.impl.GenericManagerImpl;
import com.probiz.estore.order.dao.OrderPromotionDao;
import com.probiz.estore.order.service.OrderPromotionManager;


/**
 * Manager implementation for OrderPick, responsible for business processing, and communicate between web and persistence layer.
 */
public class OrderPromotionManagerImpl extends GenericManagerImpl<OrderPromotion> implements OrderPromotionManager {

	private OrderPromotionDao orderPromotionDao = null;

	
	public void setOrderPromotionDao(OrderPromotionDao orderPromotionDao) {
		this.orderPromotionDao = orderPromotionDao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.service.impl.GenericManagerImpl#init()
	 */
	@Override
	protected void initManager() {
		dao = orderPromotionDao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.service.impl.GenericManagerImpl#preDelete(java.lang.Object)
	 */
	@Override
	protected void preDelete(OrderPromotion entity) {

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.probiz.estore.core.service.impl.GenericManagerImpl#preSave(java.lang.Object)
	 */
	@Override
	protected void preSave(OrderPromotion entity) {

	}

}
